package com.open.capacity.common.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@TableName("dayoff")
@EqualsAndHashCode(callSuper=true)
public class Dayoff extends Model<Dayoff> implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    @JsonSerialize(using= ToStringSerializer.class)
    private Integer id;

    /**
     * 日报修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @Excel(name = "临时放假时间", height = 20, width = 30, isImportField = "true_st")
    private String time;

    /**
     * 日报开始修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    //@Excel(name = "临时开始放假时间", height = 20, width = 30, isImportField = "true_st")
    private String timeStart;

    /**
     * 日报结束修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    //@Excel(name = "临时结束放假时间", height = 20, width = 30, isImportField = "true_st")
    private String timeEnd;

    /**
     * 生效状态
     */
    @Excel(name = "生效状态", height = 20, width = 30, isImportField = "true_st")
    private Integer getState;

    /**
     * 异常状态
     */
    @Excel(name = "异常状态", height = 20, width = 30, isImportField = "true_st")
    private Integer exState;

    /**
     * 执行状态
     */
    @Excel(name = "执行状态", height = 20, width = 30, isImportField = "true_st")
    private Integer putState;

}
